package com.ls.fw.pay.alipay.demo;

import java.util.Set;

import javax.validation.ConstraintViolation;

import com.ls.fw.data.helper.ValidatorHelper;
import com.ls.fw.pay.alipay.bean.PayRequestParam;

public class Main {

	public static void main(String[] args) {
		PayRequestParam obj = new PayRequestParam();
		Set set = ValidatorHelper.validate(obj);
        Set<ConstraintViolation<PayRequestParam>> constraintViolations = ValidatorHelper.validate(obj);;    
        for (ConstraintViolation<PayRequestParam> constraintViolation : constraintViolations) {    
            System.out.println("对象属性:"+constraintViolation.getPropertyPath());    
            System.out.println("国际化key:"+constraintViolation.getMessageTemplate());    
            System.out.println("错误信息:"+constraintViolation.getMessage());    
        }    
	}
}
